package cu.tedu._07springaop.egaop2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCartService {
    public static void main(String[] args) {

        ApplicationContext context=new AnnotationConfigApplicationContext("cu.tedu._07springaop");
        CartService bean = context.getBean(CartService.class);
        bean.addCart("小米汽车");
    }


}
